﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using TTSBLL;
using TTSModel;

public partial class search_SubSNSerach : System.Web.UI.Page
{
   
    private AssembleItem _assembleItem;
    protected void Page_Load(object sender, EventArgs e)
    {

    }
    public search_SubSNSerach()
    {
        _assembleItem = new AssembleItem();
      
    }
    protected void Button1_Click(object sender, EventArgs e)
    {
        DateBindToGridView();
    }
    private void DateBindToGridView()
    {
        this.GridView1.Visible = true;
        this.GridView1.DataSource = _assembleItem.AssembleItem_GetbySubSN(this.TextBox1.Text.Trim());
        this.GridView1.DataBind();
    }
    protected void Button2_Click(object sender, EventArgs e)
    {
        Response.Redirect("~/search/searchMainHtml.aspx");
    }
}